package edu.sctu.practice.class01.liangyuxiang.counter;

/**
 * Created by 梁玉翔 on 2015/9/24.
 */
public class Counter {

    Calculate calculate = new Calculate();

    String color;
    double size;

    public void calculate(double number1, double number2, String operator) {
        switch (operator) {
            case "%":
                System.out.println(calculate.div(number1, number2));
            case "*":
                System.out.println(calculate.mul(number1, number2));
        }
    }
}
